package com.cainiao.dao;

import com.cainiao.bean.Employees;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author shkstart
 * @create 2021-04-09 10:17
 */
public interface EmployeeMapperDynamicSQL {
    //携带了那个字段查询条件就带上这个字段的值
    public List<Employees> getEmpsByConditionIF(Employees emp);

    public List<Employees> getEmpsByConditionTrim(Employees emp);

    public List<Employees> getEmpsByConditionChoose(Employees emp);

    //根据员工id更新每一列
    public void updateEmp(Employees emp);

    //多项：查询员工 id'在给定集合中的
    //@Param 命名参数,起别名
    public List<Employees> getEmpsByConditionForeach(@Param("ids") List<Integer> id);

    //批量保存 @Param 命名参数,起别名
    public void addEmps(@Param("emps") List<Employees> emps);

    public List<Employees> getEmpsTestInnerParameter(Employees employees);
}
